﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Empires.CRL.DataContract;

namespace Empires.BLL.Core.IService
{
    public interface ICompanyBaseService
    {
        /// <summary>
        /// 获取当前用户角色信息
        /// </summary>
        /// <param name="copName"></param>
        /// <returns></returns>
        List<DefaultDataPack> GetAuthenticationInfo(string copName);
        /// <summary>
        /// 获取公司id
        /// </summary>
        /// <param name="copName">公司唯一标识名</param>
        /// <returns></returns>
        int GetCompanyId(string copName);
        /// <summary>
        /// 获得公司唯一标识名
        /// </summary>
        /// <param name="id">公司id</param>
        /// <returns></returns>
        string GetCompanyName(int id);

        /// <summary>
        /// 返回公司超级管理员名
        /// </summary>
        /// <param name="copname"></param>
        /// <returns></returns>
        string GetMasterName(string copname);
        /// <summary>
        /// 获得公司应用模板的基础路径
        /// </summary>
        /// <param name="id">公司id</param>
        /// <returns></returns>
        string GetCompanyTempleteBasePath(int id);
        /// <summary>
        /// 获得公司应用模板的基础路径
        /// </summary>
        /// <param name="copName">公司唯一标识名</param>
        /// <returns></returns>
        string GetCompanyTempleteBasePath(string copName);

        /// <summary>
        /// 获取公司资源文件基础路径
        /// /CustomerResource/CustomerWebResource
        /// </summary>
        /// <param name="copName"></param>
        /// <returns></returns>
        string GetCompanyRescourceBasePath(string copName,CompanyRescourceType resourceType);
        /// <summary>
        /// 获取主页展示信息的广告图片和描述 DefaultDataPack:{INFOPHOTO,PHOTOTITLE}
        /// </summary>
        /// <param name="copname"></param>
        /// <param name="take"></param>
        /// <returns></returns>
        //List<DefaultDataPack> GetCompanyMainInfo(string copname, int take);

        List<DefaultDataPack> GetCompanyMainInfoItem(string copname, int bid);
    }
}
